import unittest
import time
import app

from tools.HTMLTestRunner import HTMLTestRunner
from scripts.testLogin import testLogin
from scripts.testEmployee import testEmployee


suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(testLogin))
suite.addTest(unittest.makeSuite(testEmployee))

# file = app.base_path + "/report/report-{}.html".format(time.strftime("%Y%m%d-%H%M%S"))
file = "./report/report.html"

with open(file, "wb") as f:
    runner = HTMLTestRunner(f, title="IHRM测试报告")
    runner.run(suite)